package com.qimou.iems.mapper;

import com.qimou.iems.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Qimou Xie
 * @date 2018/3/12 17:28.
 */
public interface IUserMapper {


    /**
     * 通过手机号查询用户
     * @param phone 手机号
     * @return
     */
    User queryUserByPhone(@Param("phone") String phone);


    void update(User user);


    int countUser(Map<String,Object> map);


    List<User> queryUserList(Map<String,Object> map);


    void insert(User user);

}
